package edu.chl.chrfra.backing;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import java.text.SimpleDateFormat;
import java.util.GregorianCalendar;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;

@ManagedBean
@ApplicationScoped
public class DateTimeSupportBean {

    /** Creates a new instance of DateTimeSupport */
    public DateTimeSupportBean() {
    }
    /*
    public String getCurrentDateTime(){
    return (new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")).
    format(new GregorianCalendar().getTime());
    }*/

    public String getCurrentDateTime() {
        return (new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")).format(new GregorianCalendar().getTime());
    }
}
